package com.project.mapper;

import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.project.bean.BuyCartBean;
import org.apache.ibatis.annotations.Mapper;

import java.util.List;

@Mapper
public interface IBuyCartMapper extends BaseMapper<BuyCartBean> {
    /**
     * 根据用户id查看所有采购车
     * @param userId 用户id
     * @return 采购车集合{采购车id、采购价、采购数量、库存外键、库存对象{商品名、品牌} }
     */
    List<BuyCartBean> findById(Integer userId);

}
